<template>
  <div class="teButton" @click.stop="onClick">
    <slot></slot>
  </div>
</template>

<script>
export default {
  name: "TeButton",
  props: {},
  methods: {
    onClick(e) {
      this.$emit("click", e);
    }
  }
};
</script>

<style scoped>
.teButton {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  color: #fff;
  transition: background 0.4s, box-shadow 0.3s;
  background: #151515;
  font-size: 0.875em;
}

.teButton:hover {
  box-shadow: 0 0 2px 0px rgba(80, 80, 80, 0.1);
  background: #101010;
}
</style>
